package com.public_module.config;

import com.public_module.tools.SharedPreferencesManger;

import okhttp3.MediaType;

public class SetConfig {
    public final static MediaType JSON = MediaType.parse("application/json; charset=utf-8");
    public static String connectError = "数据获取失败";
    public static String billFinish = "订单提交完成";
    public static String exitScanf = "退出数据不保存,请确保操作已完成";
    public static int connectTimeout = 5;
    public static int readTimeout = 5;
    public static int writeTimeout = 5;

    public static String getConnectError() {
        return connectError;
    }

    public static void setConnectError(String connectError) {
        SetConfig.connectError = connectError;
    }

    public static String getBillFinish() {
        return billFinish;
    }

    public static void setBillFinish(String billFinish) {
        SetConfig.billFinish = billFinish;
    }

    public static String getExitScanf() {
        return exitScanf;
    }

    public static void setExitScanf(String exitScanf) {
        SetConfig.exitScanf = exitScanf;
    }

    public static int getConnectTimeout() {
        return connectTimeout;
    }

    public static void setConnectTimeout(int connectTimeout) {
        SetConfig.connectTimeout = connectTimeout;
    }

    public static int getReadTimeout() {
        return readTimeout;
    }

    public static void setReadTimeout(int readTimeout) {
        SetConfig.readTimeout = readTimeout;
    }

    public static int getWriteTimeout() {
        return writeTimeout;
    }

    public static void setWriteTimeout(int writeTimeout) {
        SetConfig.writeTimeout = writeTimeout;
    }
}